﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;

namespace DMEditor
{
    public partial class frmRename : Form
    {
        public frmRename()
        {
            InitializeComponent();
        }

        private void frmRename_Load(object sender, EventArgs e)
        {

        }

        public void Setup(int kit, string oldName)
        {
            this.Text = "Rename kit " + kit + " to...";
            txtNewName.Text = oldName;
            txtNewName.SelectAll();

        }

        private void btnOK_Click(object sender, EventArgs e)
        {
            Program.MainForm.RenameCurrentKit(txtNewName.Text);
            this.Hide();
        }
    }
}
